Fix parsing of font-weight
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Dec 2015 22:51:47 +0000 (17:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Dec 2015 22:51:47 +0000 (17:51 -0500)
The parser was turning a 400 into a 200 and a 700 into a 500.

gtk/gtkcssenumvalue.c

index c606f0bffd090596ec47df760e440635b2b7ec16..f8828ecf808af46cda12ceebfd95b204ae074aa1 100644 (file)
@@ -481,9 +481,9 @@ _gtk_css_font_weight_value_try_parse (GtkCssParser *parser)
     }
   /* special cases go here */
   if (_gtk_css_parser_try (parser, "400", TRUE))
-    return _gtk_css_value_ref (&font_weight_values[3]);
+    return _gtk_css_value_ref (&font_weight_values[5]);
   if (_gtk_css_parser_try (parser, "700", TRUE))
-    return _gtk_css_value_ref (&font_weight_values[6]);
+    return _gtk_css_value_ref (&font_weight_values[8]);
 
   return NULL;
 }